package com.neu.entity;

public class Tb_emp {
private int empno;
private String ename;
private String job;
private int mgr;
private String hiredate;
private double sal;
private double comm;
private int deptno;


public Tb_emp() {
	super();
}



public Tb_emp(int empno, String ename, String job, int mgr, String hiredate, double sal, double comm, int deptno) {
	super();
	this.empno = empno;
	this.ename = ename;
	this.job = job;
	this.mgr = mgr;
	this.hiredate = hiredate;
	this.sal = sal;
	this.comm = comm;
	this.deptno = deptno;
}
@Override
public String toString() {
	return "Tb_emp [empno=" + empno + ", ename=" + ename + ", job=" + job + ", mgr=" + mgr + ", hiredate=" + hiredate
			+ ", sal=" + sal + ", comm=" + comm + ", deptno=" + deptno + "]";
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	long temp;
	temp = Double.doubleToLongBits(comm);
	result = prime * result + (int) (temp ^ (temp >>> 32));
	result = prime * result + deptno;
	result = prime * result + empno;
	result = prime * result + ((ename == null) ? 0 : ename.hashCode());
	result = prime * result + ((hiredate == null) ? 0 : hiredate.hashCode());
	result = prime * result + ((job == null) ? 0 : job.hashCode());
	result = prime * result + mgr;
	temp = Double.doubleToLongBits(sal);
	result = prime * result + (int) (temp ^ (temp >>> 32));
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Tb_emp other = (Tb_emp) obj;
	if (Double.doubleToLongBits(comm) != Double.doubleToLongBits(other.comm))
		return false;
	if (deptno != other.deptno)
		return false;
	if (empno != other.empno)
		return false;
	if (ename == null) {
		if (other.ename != null)
			return false;
	} else if (!ename.equals(other.ename))
		return false;
	if (hiredate == null) {
		if (other.hiredate != null)
			return false;
	} else if (!hiredate.equals(other.hiredate))
		return false;
	if (job == null) {
		if (other.job != null)
			return false;
	} else if (!job.equals(other.job))
		return false;
	if (mgr != other.mgr)
		return false;
	if (Double.doubleToLongBits(sal) != Double.doubleToLongBits(other.sal))
		return false;
	return true;
}
public int getEmpno() {
	return empno;
}
public void setEmpno(int empno) {
	this.empno = empno;
}
public String getEname() {
	return ename;
}
public void setEname(String ename) {
	this.ename = ename;
}
public String getJob() {
	return job;
}
public void setJob(String job) {
	this.job = job;
}
public int getMgr() {
	return mgr;
}
public void setMgr(int mgr) {
	this.mgr = mgr;
}
public String getHiredate() {
	return hiredate;
}
public void setHiredate(String hiredate) {
	this.hiredate = hiredate;
}
public double getSal() {
	return sal;
}
public void setSal(double sal) {
	this.sal = sal;
}
public double getComm() {
	return comm;
}
public void setComm(double comm) {
	this.comm = comm;
}
public int getDeptno() {
	return deptno;
}
public void setDeptno(int deptno) {
	this.deptno = deptno;
}
}
